﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace zichan.Entity
{
   public class StaffRole
    {
        [Key]
        public int Id { get; set; }

        public int StaffId { get; set; }

        public int RoleId { get; set; }

        [ForeignKey("StaffId")]
        public virtual Staff Staff { get; set; }

        [ForeignKey("RoleId")]
        public virtual Role Role { get; set; }
    }
}
